﻿using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;

namespace SuperX.SuperSocket.Server
{
    public class IOTSocketServer : AppServer<IOTSocketSession, BinaryRequestInfo>
    {
        public IOTSocketServer()
           : base(new DefaultReceiveFilterFactory<IOTSocketFilter, BinaryRequestInfo>())
        {
        }

        protected override void OnStopped()
        {
            foreach (var item in GetAllSessions())
            {
                item.Dispose();
            }
            base.OnStopped();
        }
    }
}